package com.zd.commodity.userMng.action;

import com.zd.commodity.action.BaseAction;
import com.zd.commodity.userMng.biz.IMmenuBiz;
import com.zd.commodity.userMng.biz.IRoleBiz;
import com.zd.commodity.userMng.entity.Mmenu;
import com.zd.commodity.userMng.entity.Role;

public class RoleAction extends BaseAction<Role> {
	private IRoleBiz roleBiz;
	private String menusStr;
	private Long rid;
	
	public void updateRoleMenus(){
		try {
			roleBiz.updateRoleMenus(menusStr,rid);
			write(ajaxReturn(true,"权限修改成功！",null));
		} catch (Exception e) {
			write(ajaxReturn(false,"权限修改失败！",null));
			e.printStackTrace();
		}
		
	}

	public IRoleBiz getRoleBiz() {
		return roleBiz;
	}

	public void setRoleBiz(IRoleBiz roleBiz) {
		this.roleBiz = roleBiz;
		this.setBaseBiz(roleBiz);
	}

	public String getMenusStr() {
		return menusStr;
	}

	public void setMenusStr(String menusStr) {
		this.menusStr = menusStr;
	}

	public Long getRid() {
		return rid;
	}

	public void setRid(Long rid) {
		this.rid = rid;
	}
}
